package com.wyj.code.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Random;

/**
 * TODO:
 *
 * @author wuyijie
 * @date 2022/2/9 23:41
 */
@Component
@Slf4j
public class ICodeApiImpl {

    public String create(String identification) {
        Random rand = new Random();
        int i1 = rand.nextInt(1000);
        int i2 = rand.nextInt(10);
        int i = i2 * 1000 + i1;
        log.info("ICodeApiImpl create={}", i);
        return String.valueOf(i);
    }
}
